package com.zl.gmadmin.common;

import java.util.ArrayList;
import java.util.List;

/**
 * Created with IntelliJ IDEA.
 *
 * @Author: ZhangLiang
 * @Date: 2021/08/20/16:41
 * @Description: 实体类
 */
public class DPlayerConstants {
    public  static  final  Integer DPLAYER_SUCCESS_CODE=0;

    public  static  final   String DPLAYER_BARRAGE_ID="0";
    public      String author="DPlayer";
    /**
     * 出现时间
     */
    public      Double time;
    /**
     * 显示文本
     */
    public      String text;
    /**
     * 颜色十进制
     */
    public      Long color;
    /**
     * 类型
     */
    public      Integer type;

    public DPlayerConstants(Double time,Integer type,Long color,String author,String text) {
        this.author = author;
        this.time = time;
        this.text = text;
        this.color = color;
        this.type = type;
    }

    public static  final List barrage_init(DPlayerConstants dPlayerConstants){
        List data=new ArrayList();
        data.add(dPlayerConstants.getTime());
        data.add(dPlayerConstants.getType());
        data.add(dPlayerConstants.getColor());
        data.add(dPlayerConstants.getAuthor());
        data.add(dPlayerConstants.getText());

        return  data;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public Double getTime() {
        return time;
    }

    public void setTime(Double time) {
        this.time = time;
    }

    public String getText() {
        return text;
    }

    public void setText(String text) {
        this.text = text;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public Long getColor() {
        return color;
    }

    public void setColor(Long color) {
        this.color = color;
    }
}
